﻿
        var status = 0;
var ttt = "#fUI/UIWindow/Quest/icon2/7#";//"+ttt+"//美化1
var ttt2 = "#fUI/UIWindow/Quest/icon6/7#";////美化2
var ttt3 = "#fUI/UIWindow/Quest/icon3/6#";//"+ttt3+"//美化圆
var ttt4 = "#fUI/UIWindow/Quest/icon5/1#";//"+ttt4+"//美化New
var ttt5 = "#fUI/UIWindow/Quest/icon0#";////美化!
var ttt7 = "#fUI/Basic/BtHide3/mouseOver/0#";//"+ttt6+"//美化会员
var ttt6 = "#fUI/UIWindowBT.img/WorldMap/BtQsearch/mouseOver/0#";

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (cm.getMapId() == 180000001) {
        cm.sendOk("很遗憾，您因为违反用户守则被禁止游戏活动，如有异议请联系管理员.")
        cm.dispose();
    } else if (status == 0) {
        var selStr = "\r\n#e#d您好，此处可以快捷传送到各个村庄..#n#l#k\r\n\r\n";
        //selStr +="\r\n#d======================================================#k\r\n";
        selStr += "#L0#" + ttt2 + " #r#e[0]#n#b 明珠港 #r\r\n";
        selStr += "#L1#" + ttt2 + " #r#e[1]#n#b 射手村 #r\r\n";
        selStr += "#L2#" + ttt2 + " #r#e[2]#n#b 魔法密林 #r\r\n";
        selStr += "#L3#" + ttt2 + " #r#e[3]#n#b 勇士部落 #r\r\n";
        selStr += "#L4#" + ttt2 + " #r#e[4]#n#b 蘑菇城 #r\r\n";
        selStr += "#L5#" + ttt2 + " #r#e[5]#n#b 玩具城 #r\r\n";
        selStr += "#L6#" + ttt2 + " #r#e[6]#n#b 废弃都市 #r\r\n";
        selStr += "#L7#" + ttt2 + " #r#e[7]#n#b 诺特码头 #r\r\n";
        selStr += "#L8#" + ttt2 + " #r#e[8]#n#b 妖精学院 #r\r\n";
        selStr += "#L9#" + ttt2 + " #r#e[9]#n#b 武陵镇 #r\r\n";
        selStr += "#L10#" + ttt2 + " #r#e[10]#n#b 林中之城 #r\r\n";
        selStr += "#L11#" + ttt2 + " #r#e[11]#n#b 天空之城 #r\r\n";
        selStr += "#L12#" + ttt2 + " #r#e[12]#n#b 赫里希安 #r\r\n";
        selStr += "#L13#" + ttt2 + " #r#e[13]#n#b 新叶城 #r\r\n";
        selStr += "#L14#" + ttt2 + " #r#e[14]#n#b 冰封雪域 #r\r\n";
        selStr += "#L15#" + ttt2 + " #r#e[15]#n#b 狐狸村 #r\r\n";
        selStr += "#L16#" + ttt2 + " #r#e[16]#n#b 神木村 #r\r\n";
        selStr += "#L17#" + ttt2 + " #r#e[17]#n#b 百草堂 #r\r\n";
        selStr += "#L18#" + ttt2 + " #r#e[18]#n#b 水下世界 #r\r\n";
        selStr += "#L19#" + ttt2 + " #r#e[19]#n#b 阿里安特 #r\r\n";
        selStr += "#L20#" + ttt2 + " #r#e[20]#n#b 匠人街 #r\r\n";
        selStr += "#L21#" + ttt2 + " #r#e[21]#n#b 机械坟墓 #r\r\n";
        selStr += "#L22#" + ttt2 + " #r#e[22]#n#b 废弃营地 #r\r\n";
        selStr += "#L23#" + ttt2 + " #r#e[23]#n#b 圣地 #r\r\n";
        selStr += "#L24#" + ttt2 + " #r#e[24]#n#b 上海豫园 #r\r\n";
        selStr += "#L25#" + ttt2 + " #r#e[25]#n#b 古代神社 #r\r\n";
        selStr += "#L26#" + ttt2 + " #r#e[26]#n#b 玛加提亚 #r\r\n";
        selStr += "#L27#" + ttt2 + " #r#e[27]#n#b 德尔斯坦 #r\r\n";


        //selStr += "#L24#" + ttt6 + " #r#b 星星副本#l\r\n";
        selStr += "\r\n";
        //selStr +="\r\n#d======================================================#k\r\n";
        cm.askMenu(selStr);
    } else if (status == 1) {
        switch (selection) {
            case 0:
                cm.dispose();
                cm.warp(104000000);
                break;
            case 1:
                cm.dispose();
                cm.warp(100000000);
                break;
            case 2:
                cm.dispose();
                cm.warp(101000000);
                break;
            case 3:
                cm.dispose();
                cm.warp(102000000);
                break;
            case 4:
                cm.dispose();
                cm.warp(106030100);
                break;
            case 5:
                cm.dispose();
                cm.warp(220000000);
                break;
            case 6:
                cm.dispose();
                cm.warp(103000000);
                break;
            case 7:
                cm.dispose();
                cm.warp(120000000);
                break;
            case 8:
                cm.dispose();
                cm.warp(101071300);
                break;
            case 9:
                cm.dispose();
                cm.warp(250000000);
                break;
            case 10:
                cm.dispose();
                cm.warp(105000000);
                break;
            case 11:
                cm.dispose();
                cm.warp(200000000);
                break;
            case 12:
                cm.dispose();
                cm.warp(401000000);
                break;
            case 13:
                cm.dispose();
                cm.warp(600000000);
                break;
            case 14:
                cm.dispose();
                cm.warp(211000000);
                break;
            case 15:
                cm.dispose();
                cm.warp(410000000);
                break;
            case 16:
                cm.dispose();
                cm.warp(240000000);
                break;
            case 17:
                cm.dispose();
                cm.warp(251000000);
                break;
            case 18:
                cm.dispose();
                cm.warp(230000000);
                break;
            case 19:
                cm.dispose();
                cm.warp(260000000);
                break;
            case 20:
                cm.dispose();
                cm.warp(910001000);
                break;
            case 21:
                cm.dispose();
                cm.warp(310070000);
                break;
            case 22:
                cm.dispose();
                cm.warp(105300000);
                break;
            case 23:
                cm.dispose();
                cm.warp(130000000);
                break;
            case 24:
                cm.dispose();
                cm.warp(701100000);
                break;
            case 25:
                cm.dispose();
                cm.warp(800000000);
                break;
            case 26:
                cm.dispose();
                cm.warp(261000000);
                break;
            case 27:
                cm.dispose();
                cm.warp(310000000);
                break;
        }
    }
}
